package com.zhengdongzulin.zuke.app.work.activity

import android.content.Intent
import android.graphics.Color
import android.graphics.drawable.GradientDrawable
import com.blankj.utilcode.util.SizeUtils
import com.lxj.androidktx.core.getVM
import com.zhengdongzulin.zuke.R
import com.zhengdongzulin.zuke.app.work.vm.ZKAddWorkVM
import com.zhengdongzulin.zuke.base.BaseActivity
import com.zhengdongzulin.zuke.databinding.ZkActivityAddWorkSuccessBinding
import com.zhengdongzulin.zuke.ext.start


/**
 * @类名称: CLASS
 * @类描述:
 * @创建人：Jeff
 * @创建时间：2021/6/9 20:53
 * @备注：
 */
class ZKAddWorkSuccessActivity :
    BaseActivity<ZKAddWorkVM, ZkActivityAddWorkSuccessBinding>() {

    override fun getLayoutResId(): Int = R.layout.zk_activity_add_work_success

    override fun initVM(): ZKAddWorkVM = getVM(ZKAddWorkVM::class.java)

    override fun initView() {
        setTitleContent("创建成功")
        mView.ok.setBackgroundDrawable(GradientDrawable().apply {
            setColor(Color.WHITE)
            setStroke(SizeUtils.dp2px(0.5f), Color.parseColor("#1273f7"))
            cornerRadius = 10.0f
        })
    }

    override fun initData() {

    }

    override fun initListener() {
        mView.ok.setOnClickListener {
            //Intent().start(this, ZKServiceEntranceActivity::class.java)
            finish()
        }
    }

    override fun startObserve() {

    }
}

